#ifndef __YT_RECORDER_AMR_IMPL_H__
#define __YT_RECORDER_AMR_IMPL_H__

#include "YTRecorderAmr.h"
#include "YTRecordInterface.h"

class YTRecorderAmr::YTRecorderAmrImpl
{
public:
	YTRecorderAmrImpl();
	~YTRecorderAmrImpl();
	void Init();
    int Start();
    int Resume();
    int Pause();
    int Stop();
	void SetEventListener(IOnEvent* _pEvent);
private:
	void RunRecord();
private:
	YTAdapter*pPlugin;
	YTRecorderAmr::IOnEvent * pEvent;
	rtos::Thread        thRun;
	int                 nState;
    int              	nCapacity;
    void*               pBuff;
};

#endif
